/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package fplaton.economics;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author chaliasos
 */
public class economicalStandards {

    private float didaktra;
    private float kostosGumn1AnaMathima, kostosGumn2AnaMathima, kostosGumn3AnaMathima;
    private float kostosLuk1AnaMathima, kostosLuk2AnaMathima, kostosLuk3AnaMathima;
    private int meiwsi, meiwsiAnaPaidi;
    private String troposPliromis;

    public economicalStandards() {

    }

    public void setDidaktra(float fee) {
        didaktra = fee;
    }

    public void setMeiwsi(int cut) {
        meiwsi = cut;
    }

    public void setMeiwsiAnaPaidi(int cutPerKid) {
        meiwsiAnaPaidi = cutPerKid;
    }

    public void setKostosGumn1AnaMathima(float fee) {
        kostosGumn1AnaMathima = fee;
    }

    public void setKostosGumn2AnaMathima(float fee) {
        kostosGumn2AnaMathima = fee;
    }

    public void setKostosGumn3AnaMathima(float fee) {
        kostosGumn3AnaMathima = fee;
    }

    public void setKostosLuk1AnaMathima(float fee) {
        kostosLuk1AnaMathima = fee;
    }

    public void setKostosLuk2AnaMathima(float fee) {
        kostosLuk2AnaMathima = fee;
    }

    public void setKostosLuk3AnaMathima(float fee) {
        kostosLuk2AnaMathima = fee;
    }

    public void setTroposPliromis(String x) {
        troposPliromis = x;
    }

    public float getDidaktra() {
        return didaktra;
    }

    public int getMeiwsi() {
        return meiwsi;
    }

    public int getMeiwsiAnaPaidi() {
        return meiwsiAnaPaidi;
    }

    public float getKostosGumn1AnaMathima() {
        return kostosGumn1AnaMathima;
    }

    public float getKostosGumn2AnaMathima() {
        return kostosGumn2AnaMathima;
    }

    public float getKostosGumn3AnaMathima() {
        return kostosGumn3AnaMathima;
    }

    public float getKostosLuk1AnaMathima() {
        return kostosLuk1AnaMathima;
    }

    public float getKostosLuk2AnaMathima() {
        return kostosLuk2AnaMathima;
    }

    public float getKostosLuk3AnaMathima() {
        return kostosLuk3AnaMathima;
    }

    public String getTroposPliromis() {
        return troposPliromis;
    }

    public economicalStandards updateEconomicalStandards(ResultSet rs) throws SQLException {

        economicalStandards temp = new economicalStandards();

        while (rs.next()) {
            int arxikiMeiwsi = rs.getInt("ARXIKIMEIWSI");
            this.setMeiwsi(arxikiMeiwsi);
            int meiwsiAnaPaidi = rs.getInt("MEIWSIANAPAIDI");
            this.setMeiwsiAnaPaidi(meiwsiAnaPaidi);
            float kostosGumn1Math = rs.getFloat("KOSTOSGUMN1MATH");
            this.setKostosGumn1AnaMathima(kostosGumn1Math);
            float kostosGumn2Math = rs.getFloat("KOSTOSGUMN2MATH");
            this.setKostosGumn2AnaMathima(kostosGumn2Math);
            float kostosGumn3Math = rs.getFloat("KOSTOSGUMN3MATH");
            this.setKostosGumn3AnaMathima(kostosGumn3Math);
            float kostosLuk1Math = rs.getFloat("KOSTOSLUK1MATH");
            this.setKostosLuk1AnaMathima(kostosLuk1Math);
            float kostosLuk2Math = rs.getFloat("KOSTOSLUK2MATH");
            this.setKostosLuk2AnaMathima(kostosLuk2Math);
            float kostosLuk3Math = rs.getFloat("KOSTOSLUK3MATH");
            this.setKostosLuk3AnaMathima(kostosLuk3Math);

        }
        return temp;
    }

}
